The simpler media website CMS
Forum search only. You might also want to search on the main site's user guide.
Forum RSS
Visit the troubleshooting guide.
Visit the paid support page.
Your support helps pay for this server, and helps development of zenphoto. Thank you!
Visit the donations page
Comments
What I want is to show the full image when is a gif file and show the default size image when is other files.
`
<?php
if(******************************)
{
?>
" title="<?php echo getBareImageTitle();?>"> " />
<?php
}
else
{
?>
" title="<?php echo getBareImageTitle();?>"><?php printDefaultSizedImage(getImageTitle()); ?>
<?php
}
?>
`
`if (getSuffix($imageobject->filename) == "gif" {`
Do you think you can help me with the rest of the code?
When I upload the code. only the second code the else statement prints.
Of course you have to setup the image object.
`http://www.zenphoto.org/news/zenphotos-object-model-framework#creating-a-new-object`
If it's part of the `next_image()` loop the image object is already setup so then you can try:
`if (getSuffix($_zp_current_image->filename) == "gif" {etc...`